package com.game.model;

/**
 * @Author: tjc
 * @description
 * @Date Created in 21:24 2021-08-12
 */
public class Player {
    private int life = 1;
    private ScoreRecorder recorder = new ScoreRecorder();

    public boolean alive() {
        return life > 0;
    }

    public synchronized void reduceLife(){
        life--;
    }

}
